@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600;700&display=swap');

:root {
    --bg-color: #050505;
    --term-bg: #0c0c0c;
    --term-header: #1f1f1f;
    --text-main: #e0e0e0;
    --accent: #4b7cd6;
    --accent-glow: rgba(0, 140, 255, 0.4);
    --glass-bg: rgba(10, 10, 10, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-mono: 'Fira Code', Consolas, 'Courier New', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: var(--font-mono);
    background: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    user-select: none;
}

.bg-video {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #000;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-video.reveal {
    opacity: 1;
}

.bg-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: brightness(0.25) contrast(1.2) saturate(0.8);
}

.terminal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-overlay.hidden {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.terminal-window {
    width: 100%;
    max-width: 900px;
    height: 60vh;
    min-height: 400px;
    background: var(--term-bg);
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: var(--term-header);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    border-bottom: 1px solid #333;
}

.terminal-controls span {
    display: inline-block;
    margin-left: 12px;
    cursor: pointer;
}

.terminal-controls span:hover {
    color: #fff;
}

.terminal-controls .close:hover {
    color: var(--accent);
}

.terminal-body {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
}

.log-line {
    margin-bottom: 0.2rem;
}

.log-success {
    color: #4ade80;
}

.log-error {
    color: var(--accent);
}

.log-path {
    color: #60a5fa;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background-color: #fff;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

.click-to-enter {
    display: none;
    color: var(--accent);
    margin-top: 1.5rem;
    font-weight: bold;
    animation: pulse 1.5s ease-in-out infinite;
    cursor: pointer;
}

.main-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.main-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.hvh-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 3rem 4rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.hvh-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #0b1a38, var(--accent));
    background-size: 200% 100%;
    animation: border_pan 3s ease-in-out infinite;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

h1 img {
    width: 36px;
    height: 36px;
    margin-left: 12px;
    margin-top: 0;
}

.accent-text {
    color: var(--accent);
}

p.subtitle {
    color: #aaa;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    background: transparent;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 1px solid #333;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.4s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(2px);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    background: #336db9;
    border-color: #336db9;
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn-secondary:hover {
    border-color: #666;
    background: rgba(255, 255, 255, 0.05);
}

.info-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 4rem 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: rgba(15, 15, 15, 0.4);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 6px;
    text-align: left;
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(25, 25, 25, 0.6);
}

.feature-card h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-card p {
    color: #999;
    font-size: 0.85rem;
    line-height: 1.5;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 10px var(--accent);
    }
}

@media (max-width: 768px) {
    .terminal-overlay {
        padding: 0;
    }

    .terminal-window {
        height: 100vh;
        border: none;
        max-width: 100%;
    }

    .hvh-card {
        padding: 2rem 1.5rem;
        width: 100%;
        max-width: 90%;
    }

    .info-section {
        padding: 2rem 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .btn-row {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
    }
}

.discord-card {
    background: #111214;
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.discord-banner {
    background-color: var(--accent);
    height: 80px;
    width: 100%;
}

.discord-content {
    padding: 0 1rem 1.5rem 1rem;
    position: relative;
}

.discord-avatar-wrapper {
    position: relative;
    margin-top: -35px;
    margin-bottom: 15px;
    display: inline-block;
}

.discord-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 6px solid #111214;
    background: #000;
}

.status-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid #111214;
    position: absolute;
    bottom: 5px;
    right: 5px;
}

.status-dot.online {
    background: #23a55a;
}

.status-dot.dnd {
    background: #a52323;
}

.discord-user {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.discord-user .tag {
    color: #b5bac1;
    margin-bottom: 8px;
    font-size: 1.0rem;
}

.discord-bio {
    color: #dbdee1;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.discord-btn {
    width: 100%;
    display: block;
    text-decoration: none;
    text-align: center;
    font-size: 0.8rem !important;
}

@keyframes border_pan {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}